package cn.yunhe.service;


import cn.yunhe.Utils.PageBean;
import cn.yunhe.bean.Orderitem;
import cn.yunhe.bean.Orders;
import org.apache.ibatis.annotations.Param;

import javax.servlet.http.HttpSession;
import java.util.List;

public interface OrdersService {

	void toOrder(Orders orders);

	void toOrderItem(Orderitem orderitem);

	PageBean<Orders> findOrderByUidAndPage(int page, Integer uid);

	void payOrder(Orders orders, HttpSession session);

	Orders findOrderByOid(int oid);

	PageBean<Orders> findAllOrderByStateAndPage(int page);

	void updateOrderStatus(int oid, int status);

	PageBean<Orders> findAllOrderByStateAndPage(int state, int page);

	PageBean<Orders> findall(int page);





}
